import React from 'react'
import ReactDOM from 'react-dom/client'
import zhCN from 'antd/locale/zh_CN.js'
import { ConfigProvider } from 'antd'
import { HashRouter, Route, Routes } from 'react-router-dom'
import Home from './pages/Home.jsx'
import OrderList from './pages/OrderList.jsx'
import App from './App.jsx'
import Ops from './pages/Ops.jsx'
import './index.scss'

ReactDOM.createRoot(document.getElementById('root')).render(
  <ConfigProvider locale={zhCN}>
    <HashRouter>
      <Routes>
        <Route path="/" element={<App />} />
        <Route path="/home" element={<Home/>} />
        <Route path="/order_list" element={<OrderList />} />
        <Route path="/ops" element={<Ops />} />
      </Routes>
    </HashRouter>
  </ConfigProvider>,
)
